.class Lcom/xingbook/xingbook/activity/h;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/xingbook/xingbook/d/g;


# instance fields
.field final synthetic a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;


# direct methods
.method constructor <init>(Lcom/xingbook/xingbook/activity/XingBookDetailActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    invoke-virtual {v0}, Lcom/xingbook/xingbook/activity/XingBookDetailActivity;->finish()V

    return-void
.end method

.method public a(Lcom/xingbook/xingbook/b/d;)V
    .locals 4

    if-nez p1, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v0

    sget-object v1, Lcom/xingbook/park/c/a;->i:[I

    invoke-virtual {v0, v1}, Lcom/xingbook/c/j;->a([I)Z

    move-result v0

    if-eqz v0, :cond_1

    new-instance v0, Lcom/xingbook/xingbook/c/b;

    iget-object v1, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    iget-object v2, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    iget-object v3, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    invoke-static {v3}, Lcom/xingbook/xingbook/activity/XingBookDetailActivity;->a(Lcom/xingbook/xingbook/activity/XingBookDetailActivity;)Lcom/xingbook/xingbook/c/d;

    move-result-object v3

    invoke-direct {v0, v1, p1, v2, v3}, Lcom/xingbook/xingbook/c/b;-><init>(Landroid/content/Context;Lcom/xingbook/xingbook/b/a;Lcom/xingbook/service/download/f;Lcom/xingbook/xingbook/c/d;)V

    const/4 v1, 0x0

    invoke-virtual {p1}, Lcom/xingbook/xingbook/b/d;->D()I

    move-result v2

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/xingbook/c/b;->a(II)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    const-string v1, "\u60a8\u8fd8\u4e0d\u662f\u4f1a\u5458\u54e6~"

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    const-class v2, Lcom/xingbook/park/activity/VIPAct;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iget-object v1, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    invoke-virtual {v1, v0}, Lcom/xingbook/xingbook/activity/XingBookDetailActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0
.end method

.method public b()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/xingbook/xingbook/activity/XingBookDetailActivity;->a(Lcom/xingbook/xingbook/activity/XingBookDetailActivity;I)V

    return-void
.end method

.method public b(Lcom/xingbook/xingbook/b/d;)V
    .locals 8

    const/4 v7, 0x0

    if-nez p1, :cond_0

    :goto_0
    return-void

    :cond_0
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    new-instance v0, Lcom/xingbook/c/q;

    const/16 v1, 0x30

    invoke-virtual {p1}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p1}, Lcom/xingbook/xingbook/b/d;->u()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p1}, Lcom/xingbook/xingbook/b/d;->ab()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->length()I

    move-result v6

    invoke-virtual {v5, v7, v6}, Ljava/lang/StringBuilder;->delete(II)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "http://www.xingbook.com/z/w/"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {p1}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, ".html"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {p1, v7}, Lcom/xingbook/xingbook/b/d;->d(Z)Ljava/lang/String;

    move-result-object v6

    invoke-direct/range {v0 .. v6}, Lcom/xingbook/c/q;-><init>(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    const/4 v2, 0x0

    invoke-static {v1, v0, v2}, Lcom/xingbook/park/activity/SNSShareActivity;->a(Landroid/app/Activity;Lcom/xingbook/c/q;Lcom/xingbook/park/activity/bm;)Z

    goto :goto_0
.end method

.method public c(Lcom/xingbook/xingbook/b/d;)V
    .locals 5

    const/4 v4, 0x0

    if-nez p1, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v0

    sget-object v1, Lcom/xingbook/park/c/a;->i:[I

    invoke-virtual {v0, v1}, Lcom/xingbook/c/j;->a([I)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    const-string v1, "\u60a8\u662f\u4f1a\u5458\uff0c\u672c\u6b21\u5151\u6362\u4e0d\u6d88\u8017\u661f\u5e01"

    invoke-static {v0, v1, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    :cond_1
    new-instance v0, Lcom/xingbook/xingbook/c/b;

    iget-object v1, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    iget-object v2, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    iget-object v3, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    invoke-static {v3}, Lcom/xingbook/xingbook/activity/XingBookDetailActivity;->a(Lcom/xingbook/xingbook/activity/XingBookDetailActivity;)Lcom/xingbook/xingbook/c/d;

    move-result-object v3

    invoke-direct {v0, v1, p1, v2, v3}, Lcom/xingbook/xingbook/c/b;-><init>(Landroid/content/Context;Lcom/xingbook/xingbook/b/a;Lcom/xingbook/service/download/f;Lcom/xingbook/xingbook/c/d;)V

    invoke-virtual {p1}, Lcom/xingbook/xingbook/b/d;->D()I

    move-result v1

    invoke-virtual {v0, v4, v1}, Lcom/xingbook/xingbook/c/b;->a(II)V

    goto :goto_0
.end method

.method public d(Lcom/xingbook/xingbook/b/d;)V
    .locals 4

    if-nez p1, :cond_0

    :goto_0
    return-void

    :cond_0
    new-instance v0, Lcom/xingbook/xingbook/c/b;

    iget-object v1, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    iget-object v2, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    iget-object v3, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    invoke-static {v3}, Lcom/xingbook/xingbook/activity/XingBookDetailActivity;->a(Lcom/xingbook/xingbook/activity/XingBookDetailActivity;)Lcom/xingbook/xingbook/c/d;

    move-result-object v3

    invoke-direct {v0, v1, p1, v2, v3}, Lcom/xingbook/xingbook/c/b;-><init>(Landroid/content/Context;Lcom/xingbook/xingbook/b/a;Lcom/xingbook/service/download/f;Lcom/xingbook/xingbook/c/d;)V

    const/4 v1, 0x0

    invoke-virtual {p1}, Lcom/xingbook/xingbook/b/d;->D()I

    move-result v2

    invoke-virtual {v0, v1, v2}, Lcom/xingbook/xingbook/c/b;->a(II)V

    goto :goto_0
.end method

.method public e(Lcom/xingbook/xingbook/b/d;)V
    .locals 3

    if-nez p1, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    invoke-virtual {v0}, Lcom/xingbook/xingbook/activity/XingBookDetailActivity;->finish()V

    :goto_0
    return-void

    :cond_0
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    const-class v2, Lcom/xingbook/park/activity/OpenBookAct;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "com.xingbook.park.BOOK_ID"

    invoke-virtual {p1}, Lcom/xingbook/xingbook/b/d;->t()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "com.xingbook.park.TO_STORE"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const/high16 v1, 0x1000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    iget-object v1, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    invoke-virtual {v1, v0}, Lcom/xingbook/xingbook/activity/XingBookDetailActivity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/xingbook/xingbook/activity/h;->a:Lcom/xingbook/xingbook/activity/XingBookDetailActivity;

    invoke-virtual {v0}, Lcom/xingbook/xingbook/activity/XingBookDetailActivity;->finish()V

    goto :goto_0
.end method
